/***************************************************************************//**
 * @file CGI/CGI_DataInp.h
 * @author  Marek M. Cel <marekcel@mscsim.org>
 *
 * @section LICENSE
 *
 * Copyright (C) 2014 Marek M. Cel
 *
 * This file is part of MScSim. You can redistribute and modify it under
 * the terms of GNU General Public License as published by the Free Software
 * Foundation; either version 3 of the License, or (at your option) any later
 * version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
 * for more details.
 *
 * You should have received a copy of the GNU General Public License along
 * with this program; if not, write to the Free Software Foundation, Inc.
 * 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 *
 * Further information about the GNU General Public License can also be found
 * on the world wide web at http://www.gnu.org.
 ******************************************************************************/
#ifndef CGI_DATA_INP_H
#define CGI_DATA_INP_H

////////////////////////////////////////////////////////////////////////////////

#include <string>

#include <mscsim_defs.h>

////////////////////////////////////////////////////////////////////////////////

/** */
struct CGI_DataInp
{
    struct InitData
    {

    };

    struct Aircraft
    {
        double latitude;        ///< [rad]
        double longitude;       ///< [rad]
        double altitude;        ///< [m] altitude above sea level

        double wgs_x;           ///< [m]
        double wgs_y;           ///< [m]
        double wgs_z;           ///< [m]

        double wgs_phi;         ///< [rad]
        double wgs_tht;         ///< [rad]
        double wgs_psi;         ///< [rad]
    };

    struct DateTime
    {
        int year;               ///< year
        int month;              ///< 1...12 month
        int day;                ///< 1...31 day

        int hour;               ///< 0...23 hour
        int minute;             ///< 0...59 minute
        int second;             ///< 0...59 second
    };

    struct Environment
    {
        double visibility;      ///< [m]
    };

    InitData    initData;       ///<
    Aircraft    aircraft;       ///<
    DateTime    dateTime;       ///< Greenwich Mean Time
    Environment environment;    ///< environment data

    MScSimPhase inpPhase;       ///< input phase @see MScSimPhase
};

////////////////////////////////////////////////////////////////////////////////

#endif // CGI_DATA_INP_H
